﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Reflection.Controller;

namespace Pixysoft.Framework.Reflection.Core
{
    class DummyAssembly : IDummyAssembly
    {
        string _assemblyName;
        string _assemblyFileName;

        public DummyAssembly()
        {
        }

        public DummyAssembly(string assemblyname, string assemblyfilename)
        {
            LoggerHelper.Log("-> new DummyAssembly({0},{1})", assemblyname, assemblyfilename);

            this._assemblyName = assemblyname;
            this._assemblyFileName = assemblyfilename;
        }

        public string AssemblyName
        {
            get { return _assemblyName; }
            set { _assemblyName = value; }
        }

        public string AssemblyFileName
        {
            get { return _assemblyFileName; }
            set { _assemblyFileName = value; }
        }

        public IDummyAssembly Clone()
        {
            DummyAssembly clone = new DummyAssembly(this._assemblyName, this._assemblyFileName);

            return clone;
        }

        public void Dispose()
        {
            this._assemblyFileName = null;
            this._assemblyName = null;
        }

        public override string ToString()
        {
            return _assemblyName;
        }

    }
}
